

class ValUserInfoBaseData {

  ValUserInfoBaseData({
    this.avatar = '',
    this.nickname = '',
    this.userId = '0001',
  });

  String avatar;
  String nickname;
  String userId;

  factory ValUserInfoBaseData.fromJson(Map<String, dynamic> json) {
    ValUserInfoBaseData postModel = ValUserInfoBaseData(
      avatar: json["avatar"],
      userId: json["userId"],
      nickname: json["nickname"],
    );
    return postModel;
  }

  Map<String, dynamic> toJson() => {
    "avatar": avatar,
    "userId": userId,
    "nickname": nickname,
  };
}
